package com.it.system.user.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.it.system.educommonapi.entity.User;
import com.it.system.user.mapper.UserMapper;
import com.it.system.user.service.UserService;
import org.springframework.stereotype.Service;


@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {
    
    @Override
    public boolean updateAvatar(Integer userId, String avatarUrl) {
        User user = new User();
        user.setId(userId);
        user.setIcon(avatarUrl);
        return this.updateById(user);
    }
}
